#ifndef HISTOGRAM_H
#define HISTOGRAM_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include "ui_histogram.h"
#include "PBO.h"
#include "kernelPBO.h"


class histogram : public QWidget
{
	Q_OBJECT

public:
	histogram(QWidget *parent, PBO*);
	~histogram();
	PBO* pbo;

public Q_SLOTS:
	void countRed();
	void countGreen();
	void countBlue();
	void countGray();
	void flatten();
	void balancing();

public slots:
	void count();

private:
	Ui::histogram ui;
	QLabel* imageWindow;

	HISTOGRAM_TYPE type;
};

#endif // HISTOGRAM_H
